package com.wocharging.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
* <p>
* 充电桩信息
* </p>
* @author yuzhou
* @since 2024-06-179 15:00:10
*/
@Data
@Accessors(chain = true)
@TableName("wo_charge_pile")
@ApiModel(value = "WoChargePile对象", description = "充电桩信息")
public class WoChargePile implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("运营商id")
    @TableField("operation_id")
    private Long operationId;

    @ApiModelProperty("充电桩编号")
    @TableField("pile_no")
    private String pileNo;

    @ApiModelProperty("充电桩名称")
    @TableField("pile_name")
    private String pileName;

    @ApiModelProperty("充电桩型号")
    @TableField("pile_type_id")
    private Integer pileTypeId;

    @ApiModelProperty("充电桩类型 1: 固定充电桩  2: 移动充电桩")
    @TableField("pile_model")
    private Integer pileModel;

    @ApiModelProperty("充电桩 1:交流 2:直流")
    @TableField("pile_electric_type")
    private Integer pileElectricType;

    @ApiModelProperty("最近一次心跳时间")
    @TableField("heartbeat_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date heartbeatTime;

    @ApiModelProperty("充电二维码")
    @TableField("qr_code_url")
    private String qrCodeUrl;

    @ApiModelProperty("桩程序版本号")
    @TableField("version")
    private String version;

    @ApiModelProperty("状态1:正常 2:不可用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("1:可用 0:删除")
    @TableField("flag")
    private Integer flag;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

}
